package com.gitee.mars.studyabroad.controller;

import com.gitee.mars.studyabroad.response.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import lombok.AllArgsConstructor;

import java.util.Arrays;

import com.gitee.mars.studyabroad.entity.Country;
import com.gitee.mars.studyabroad.service.ICountryService;

/**
 * Country 控制层
 *
 * @Author wq
 * @Date 2021-04-21
 **/
@RestController
@RequestMapping("/country")
@AllArgsConstructor
public class CountryController {

    private final ICountryService countryService;


    /**
     * 列表
     *
     * @return R
     */
    @GetMapping("/list")
    public R list() {
        return R.success(countryService.list());
    }

}